<?php 
include ("../common/pdata_mysql.php");
$conn = mysql_pconnect($hostname_pdata,$username_pdata,$password_pdata);
mysql_select_db($database_pdata);

$sql = "SELECT * FROM zjinfo ORDER BY top , conptime DESC ";

$rs = mysql_query($sql,$conn)  or die( mysql_error());

	
	
while($row = mysql_fetch_array($rs))
{ 
if ($row["conptime"] ==  getdate())
	$tdy = "today";
else
	$tdy = "";


 echo "<!-- post-".$row['postID']." start -->";
 ?>

<div class="perContent <?php echo $tdy ?>" id=<?php echo "'post-".$row['postID']."'"; ?>>
  <div class="content">
    <div class="contitle "> <span class="conname"> <a  href="showall.php?post=<?php echo $row['postID']; ?>">
      <?php if($row['top']) echo "[置顶]";
      echo $row['conname'];
      ?>
      </a></span><span class="contime">发布时间： <?php echo $row['contime'] ?> </span> </div>
    <div class="contop">
      <li class="contype">分类：造价</li>
      <li class="condepart">发布部门：<?php echo $row['condepart'] ?></li>
      <li class="consourse">信息来源：<a href="<?php echo $row['consourse'].$row['conaddr'] ?>" target="_blank"> <?php echo $row['consourse'] ?> </a></li>
    </div>
    <div class="conall">
      <div class="conpic omit"><img width="160" height="200"  /></div>
      <div class="condisplay"> <?php echo $row['condisplay'] ?> </div>
      <div class="moreDetail <?php echo (shmore) ?>"> <a class="showmore" href="showall.php?post=<?php echo $row['postID'] ?>">详细阅读</a> </div>
    </div>
    <div class="conbottom">
      <li class="conpsubmit">提交人：<?php echo $row['conpsubmit'] ?></li>
      <li class="conptime">提交时间：<?php echo $row['conptime'] ?></li>
    </div>
    <div class="clean"></div>
  </div>
</div>
<?php echo "<!-- post-".$row['postID']." end -->";

}
?>